//
//  WYHotIndustryCollectionViewCell.m
//  Boss
//
//  Created by admin on 2018/6/23.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYHotIndustryCollectionViewCell.h"
#import "WYHotSector.h"
#import "WYBrandZone.h"
@implementation WYHotIndustryCollectionViewCell

-(void)setModel:(id)model
{
  //  WYHotSector *hotSector = self.dataArray[indexPath.row];
    if ([model isKindOfClass:[WYHotSector class]]) {
        WYHotSector *hotSector = model;
        [self.hotImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@!default",hotSector.url]] placeholderImage:[UIImage imageNamed:@"icon_hot_placeholder"]];
    }
    if ([model isKindOfClass:[WYBrandZone class]]) {
        
        WYBrandZone *hotSector = model;
        [self.hotImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@!default",hotSector.url]] placeholderImage:[UIImage imageNamed:@"icon_hot_placeholder"]];
        
    }
    
    
    
    
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
